﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PlaceOrder_Shared.Models.Chat
{
    /// <summary>
    /// 聊天中介
    /// </summary>
    //public class ChatBroker:BindableBase
    //{
    //    public int UnreadMessageCount { get; set; } //未读消息数

    //    public string BrokerName { get; set; }//中介名称

    //    public string Icon { get; set; }//头像，默认是通用

    //    public int BrokerId {  get; set; } // 中介id
    //}

    public class ChatBroker : DevExpress.Mvvm.BindableBase
    {
        private int _unreadMessageCount;

        private string _chatName;

        private string _brokerName;
        private string _icon;
        private int _brokerId;
        private bool _isChecked;

        public int UnreadMessageCount
        {
            get => _unreadMessageCount;
            set => SetProperty(ref _unreadMessageCount, value, nameof(UnreadMessageCount));
        }
        public string ChatName
        {
            get => _chatName;
            set => SetProperty(ref _chatName, value, nameof(_chatName));
        }
        public string BrokerName
        {
            get => _brokerName;
            set => SetProperty(ref _brokerName, value, nameof(BrokerName));
        }

        public string Icon
        {
            get => _icon;
            set => SetProperty(ref _icon, value, nameof(Icon));
        }

        public int BrokerId
        {
            get => _brokerId;
            set => SetProperty(ref _brokerId, value, nameof(BrokerId));
        }

        public bool IsChecked
        {
            get => _isChecked;
            set => SetProperty(ref _isChecked, value, nameof(_isChecked));
        }
    }
}
